package com.github.jiangxch.rpc.transport;

import java.io.IOException;

/**
 * @author: jiangxch
 * @date: 2021/2/20 10:55
 */
public interface ChannelHandler {
    void onSend(Channel channel,Object message);
    
    void onActive(Channel channel) throws IOException;

    void onReceive(Channel channel, Object message) throws IOException;

    void caught(Channel channel, Throwable throwable);
}
